﻿@model OnlinePharmacyV001.Models.Account

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Account</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.accUser)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accUser)
            @Html.ValidationMessageFor(model => model.accUser)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accPass)
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.accPass)
            @Html.ValidationMessageFor(model => model.accPass)
        </div>

        <div class="editor-label">
            Confirmed Password
        </div>
        <div class="editor-field">
            <input type="password" name="confirmedPass" class="text-box single-line" />
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accFullName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accFullName)
            @Html.ValidationMessageFor(model => model.accFullName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accEmail)
            @Html.ValidationMessageFor(model => model.accEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accBirthday)
        </div>
        <div class="editor-field">
            <input id="accBirthday" class="input-validation-error text-box single-line dPicker" type="text" value="" name="accBirthday" data-val-required="The accBirthday field is required." data-val="true">
            @Html.ValidationMessageFor(model => model.accBirthday)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accGender)
        </div>
        <div class="editor-field">
            <select name="accGender">
                <option value="0">Female</option>
                <option value="1">Male</option>
                <option value="2">Other</option>
            </select>
            @Html.ValidationMessageFor(model => model.accGender)
        </div>
        <!--
        <div class="editor-label">
            @Html.LabelFor(model => model.accCreatedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accCreatedDate)
            @Html.ValidationMessageFor(model => model.accCreatedDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accLastLogin)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accLastLogin)
            @Html.ValidationMessageFor(model => model.accLastLogin)
        </div>
        -->
        <div class="editor-label">
            @Html.LabelFor(model => model.accAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accAddress)
            @Html.ValidationMessageFor(model => model.accAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accPhone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accPhone)
            @Html.ValidationMessageFor(model => model.accPhone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accCompany)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.accCompany)
            @Html.ValidationMessageFor(model => model.accCompany)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.rlId, "Role")
        </div>
        <div class="editor-field">
            @Html.DropDownList("rlId", "Select")
            @Html.ValidationMessageFor(model => model.rlId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.accStatus)
        </div>
        <div class="editor-field">
            <select name="accStatus">
                <option value="1">Enable</option>
                <option value="0">Disable</option>
            </select>
            @Html.ValidationMessageFor(model => model.accStatus)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
